package com.builder;

/**
 * @author 薛虎
 * @date 2021/1/6 9:13
 * 传统解决盖房子的方法
 */
public abstract class AbstractHouse {

    //打地基
    public abstract void buildBasic();

    //砌墙
    public abstract void buildWalls();

    //封顶
    public abstract void roofed();

    public void build() {
        buildBasic();
        buildWalls();
        roofed();
    }

}
